Ejemplo n.º 1
0
 public static function initialize($id, $idS)
 {
     $OO = AppBlogsMultimediaPeer::retrieveByPK($id);
     if (!$OO instanceof AppBlogsMultimedia) {
         $OO = new AppBlogsMultimedia();
         $OO->setDate(date('Y-m-d', time()));
         $OO->setDesc("");
         $OO->setSiteId($idS);
         $OO->setActiu(true);
     }
     return new AppBlogsMultimediaForm($OO, array('IDS' => $idS));
 }