/**
* Do some php magic to allow static::find_deleted() to work
*
* @param string $method
* @param array $args
* @return mixed
*/
public static function __callStatic($method, $args)
{
if (strpos($method, 'find_deleted') === 0) {
$temp_args = $args;
$find_type = count($temp_args) > 0 ? array_shift($temp_args) : 'all';
$options = count($temp_args) > 0 ? array_shift($temp_args) : array();
return static::deleted($find_type, $options);
}
return parent::__callStatic($method, $args);
}