/** * * @param Integer $dbid the div id you want to put offline/online * @return Mixed On success a string with the new status (offline/online). false on error. */ public static function duplicate($dbid = 0, $nodeId = 0) { $row = new Pagdivs($dbid); $datasSet = $row->get(); $datas = $datasSet->toArray(); $datas['online'] = 0; unset($datas['id']); $insertRow = new Pagdivs(); return $insertRow->insert($datas); }