Exemplo n.º 1
0
 public function getClone($content_id)
 {
     $values = parent::get($content_id)->toArray();
     $values['content_id'] = 0;
     $values['content_title'] = PageLocale::CONTENT_COPY . $values['content_title'];
     $values['content_weight'] = 0;
     $values['content_hits'] = 0;
     $values['content_votes'] = 0;
     $values['content_rating'] = 0;
     $values['content_create'] = time();
     $obj = parent::create();
     $obj->setVars($values);
     return $obj;
 }
Exemplo n.º 2
0
 /**
  * @param bool $isNew
  *
  * @return object
  */
 public function &create($isNew = true)
 {
     $obj = parent::create($isNew);
     if ($isNew) {
         $obj->setDefaultPermissions();
     }
     return $obj;
 }
Exemplo n.º 3
0
 /**
  * @param bool $isNew
  *
  * @return XoopsObject
  */
 public function create($isNew = true)
 {
     $temp = parent::create($isNew);
     return $temp;
 }