我有课,我想初始化存储带有“blob”类型的图片的列,但我不确定如何?看一下代码的纬度行
public function __construct( $data=array() ) {
if ( isset( $data['id'] ) ) $this->id = (int) $data['id'];
if ( isset( $data['date'] ) ) $this->date= (int) $data['date'];
if ( isset( $data['topic'] ) ) $this->topic = preg_replace ( "/[^\.\,\-\_\'\"\@\?\!\:\$ a-zA-Z0-9()]/", "", $data['topic'] );
if ( isset( $data['author'] ) ) $this->author = preg_replace ( "/[^\.\,\-\_\'\"\@\?\!\:\$ a-zA-Z0-9()]/", "", $data['author'] );
if ( isset( $data['content'] ) ) $this->content = $data['content'];
if ( isset( $data['picture'] ) ) $this->picture ="Here sholud be the Type" $data['picture'];
}