ObjectMeta::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : ObjectMeta
return ObjectMeta the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

Example #1
0
 /**
  * Function to get Object Meta
  **/
 public static function getObjectMeta($id, $meta)
 {
     $object_meta = ObjectMeta::model()->find('(meta_object_id = :id) and (meta_key=:meta_key)', array(':id' => $id, ':meta_key' => $meta));
     if ($object_meta) {
         return $object_meta->meta_value;
     } else {
         return null;
     }
 }
All Usage Examples Of ObjectMeta::model