GDS\Entity::getKeyName PHP Метод

getKeyName() публичный Метод

Get the key name
public getKeyName ( ) : string
Результат string
    public function getKeyName()
    {
        return $this->str_key_name;
    }

Usage Example

Пример #1
0
 /**
  * Delete a specific session
  *
  * @param string $str_id
  * @return bool
  */
 public function destroy($str_id)
 {
     if ($this->obj_session_entity instanceof Entity && $str_id === $this->obj_session_entity->getKeyName()) {
         $this->getStore()->delete($this->obj_session_entity);
         $this->obj_session_entity = null;
         $this->str_data = '';
         $this->bol_new = false;
     } else {
         $obj_session_entity = $this->getStore()->fetchByName($str_id);
         if ($obj_session_entity instanceof Entity) {
             $this->getStore()->delete($obj_session_entity);
         }
     }
     $this->obj_mc->delete($this->getMemcacheKey($str_id));
     return true;
 }
All Usage Examples Of GDS\Entity::getKeyName