示例#1
0
 /**
  * read core record form __casebox.cores table
  * @param  varchar $idOrName
  * @return array   | null
  */
 public static function read($idOrName)
 {
     $id = static::toId($idOrName);
     if (!$id) {
         trigger_error('can\'t get core id from name:' . $idOrName, E_USER_WARNING);
     }
     $rez = parent::read($id);
     return $rez;
 }
示例#2
0
 /**
  * read core record form __casebox.cores table
  * @param  varchar $idOrName
  * @return array   | null
  */
 public static function read($idOrName)
 {
     $id = static::toId($idOrName);
     $rez = parent::read($id);
     return $rez;
 }