protected function _getConditionsForEmployee($id = null) {
		$conditions = [];
		if (empty($id)) {
			return $conditions;
		}

		$id = (string)$id;
		if (ctype_digit($id)) {
			$conditions[$this->alias . '.id'] = $id;
		} elseif (isGuid($id)) {
			$conditions[$this->alias . '.' . CAKE_LDAP_LDAP_ATTRIBUTE_OBJECT_GUID] = $id;
		} else {
			$conditions[$this->alias . '.' . CAKE_LDAP_LDAP_ATTRIBUTE_DISTINGUISHED_NAME] = $id;
		}

		return $conditions;
	}
protected function _getConditionsForEmployee($id = null) {
		$conditions = [];
		if (empty($id)) {
			return $conditions;
		}

		$id = (string)$id;
		if (ctype_digit($id)) {
			$conditions[$this->alias . '.id'] = $id;
		} elseif (isGuid($id)) {
			$conditions[$this->alias . '.' . CAKE_LDAP_LDAP_ATTRIBUTE_OBJECT_GUID] = $id;
		} else {
			$conditions[$this->alias . '.' . CAKE_LDAP_LDAP_ATTRIBUTE_DISTINGUISHED_NAME] = $id;
		}

		return $conditions;
	}
protected function _getConditionsForEmployee ( $ id = null ) { $ conditions = [ ] ; if ( empty ( $ id ) ) { return $ conditions ; } $ id = ( string ) $ id ; if ( ctype_digit ( $ id ) ) { $ conditions [ $ this -> alias . '.id' ] = $ id ; } elseif ( isGuid ( $ id ) ) { $ conditions [ $ this -> alias . '.' . CAKE_LDAP_LDAP_ATTRIBUTE_OBJECT_GUID ] = $ id ; } else { $ conditions [ $ this -> alias . '.' . CAKE_LDAP_LDAP_ATTRIBUTE_DISTINGUISHED_NAME ] = $ id ; } return $ conditions ; }
Return conditions for find employee

@param string|null $id ID of record, or GUID, or Distinguished Name of employee
@return array Return conditions for find employee.
Return conditions for find employee