Back to Table class

Method hasField

public bool
hasField
(mixed $key)
Check if the record has a property (applying a column alias if it exists)
Parameters
  • string $key key to be checked
Returns
  • bool
Since
  • 3.9.11
Class: Table
Project: Joomla

Method hasField - Source code

/**
 * Check if the record has a property (applying a column alias if it exists)
 *
 * @param   string  $key  key to be checked
 *
 * @return  boolean
 *
 * @since   3.9.11
 */
public function hasField($key)
{
    $key = $this->getColumnAlias($key);
    return property_exists($this, $key);
}