Organization Types

This service is used to manage one or many Organization Types.

find( $identifier )

Returns a Organization Type or null if not found.

ArgumentAcceptsDescription
$identifierstring, integer, Organization TypeA unique Organization Type identifier
{% set element = craft.organizations.organizationTypes.find(1) %}
{% set element = craft.organizations.organizationTypes.find('ngo') %}

findByCondition( $condition )

Returns a Organization Type or null if not found.

ArgumentAcceptsDescription
$conditionarrayA query 'where' condition
{% set element = craft.organizations.organizationTypes.findByCondition({
    handle: 'foo'
}) %}

findByCriteria( $criteria )

Returns a Organization Type or null if not found.

ArgumentAcceptsDescription
$criteriaarrayA query configuration
{% set element = craft.organizations.organizationTypes.findByCriteria({
    id: 1,
    indexBy: 'id'
}) %}

findAllByCondition( $condition )

Returns an array of Organization Types.

ArgumentAcceptsDescription
$conditionarrayA query 'where' condition
{% set elements = craft.organizations.organizationTypes.findAllByCondition({
    name: 'Foo'
}) %}

findAllByCriteria( $criteria )

Returns an array of Organization Types.

ArgumentAcceptsDescription
$criteriaarrayA query configuration
{% set element = craft.organizations.organizationTypes.findAllByCriteria({
    name: 'Foo',
    indexBy: 'id'
}) %}

getQuery( $criteria )

Returns a Organization Type Query.

ArgumentAcceptsDescription
$criteriaarrayA query configuration
{% set query = craft.organizations.organizationTypes.getQuery({
    name: 'Foo',
    indexBy: 'id'
}) %}