src/Table/Table.php
protected function realPkSelection(&$pk)
  {
    if ( null === $pk ){
      $pk = $this->row->get($this->tbl_key);
    }
    
    if ( null === $pk ){
      $this->setError( DatabaseHelper::getTranslation('NO_ITEM_SELECTED') );
      return false;
    }
    
    return true;
  }
protected function realPkSelection(&$pk)
  {
    if ( null === $pk ){
      $pk = $this->row->get($this->tbl_key);
    }
    
    if ( null === $pk ){
      $this->setError( DatabaseHelper::getTranslation('NO_ITEM_SELECTED') );
      return false;
    }
    
    return true;
  }
protected function realPkSelection ( & $ pk ) { if ( null === $ pk ) { $ pk = $ this -> row -> get ( $ this -> tbl_key ) ; } if ( null === $ pk ) { $ this -> setError ( DatabaseHelper :: getTranslation ( 'NO_ITEM_SELECTED' ) ) ; return false ; } return true ; }
Set the real pk request value

If no pk was requested it check if a row is currently loaded

@return bool
Set the real pk request value