Ejemplo n.º 1
0
 /**
  * Checked whether an object is locked
  *
  * @param int|mixed $object_id The object ID
  * @return bool
  */
 public function is_object_locked($object_id)
 {
     $gf_locking = new GFAddonLocking($this->get_locking_config(), $this);
     return $gf_locking->is_locked($object_id);
 }
Ejemplo n.º 2
0
 /**
  * Outputs class for the row for the specified Object ID on the list page.
  *
  * @param int $object_id The object ID
  * @param bool $echo Whether to echo
  * @return string The markup for the class
  */
 public function list_row_class($object_id, $echo = true)
 {
     $gf_locking = new GFAddonLocking($this->get_locking_config(), $this);
     $class = $gf_locking->list_row_class($object_id, false);
     if ($echo) {
         echo $class;
     }
     return $class;
 }