WhatsApp

it is a method to get the filter form.

  • array $data - data
  • boolean $loadData - load current data
  • return \JForm|boolean - The \JForm object or false on error
public function getFilterForm($data = array(), $loadData = true)
{
$form = null;

// Try to locate the filter form automatically. Example: ContentModelArticles => "filter_articles"
if (empty($this->filterFormName))
{
$classNameParts = explode('Model', get_called_class());

if (count($classNameParts) == 2)
{
$this->filterFormName = 'filter_' . strtolower($classNameParts[1]);
}
}

if (!empty($this->filterFormName))
{
// Get the form.
$form = $this->loadForm($this->context . '.filter', $this->filterFormName, array('control' => '', 'load_data' => $loadData));
}

return $form;
}

 

List Model
Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive