public function getCriteria($attributes = null) { if ($attributes instanceof ElementCriteriaModel) { $attributes = $attributes->getAttributes(); } return new Neo_CriteriaModel($attributes); }