Esempio n. 1
0
 protected function _postInsert()
 {
     parent::_postInsert();
     $signatureTbl = new Book_Model_DbTable_Signatures();
     $signature = $signatureTbl->createRow(array('parent_object_id' => $this->getIdentity(), 'parent_object_type' => $this->getType(), 'favorite_count' => 0, 'view_count' => 0));
     $signature->save();
 }
Esempio n. 2
0
 protected function _postInsert()
 {
     parent::_postInsert();
     $signatureTbl = new Book_Model_DbTable_Signatures();
     $signature = $signatureTbl->createRow(array('parent_object_id' => $this->getIdentity(), 'parent_object_type' => $this->getType(), 'favorite_count' => 0, 'view_count' => 0));
     $signature->save();
     $popularityTbl = new Book_Model_DbTable_Popularities();
     $popularity = $popularityTbl->createRow(array('resource_id' => $this->getIdentity(), 'resource_type' => $this->getType(), 'posted_date' => date('Y-m-d H:i:s')));
     $popularity->save();
 }