public function get($id = null) {
		if (empty($id)) {
			return false;
		}

		$fields = [
			$this->alias . '.id',
			$this->alias . '.value',
		];
		$blockExists = $this->hasField('block');
		if ($blockExists) {
			$fields[] = $this->alias . '.block';
		}
		$conditions = [$this->alias . '.id' => $id];
		$this->recursive = -1;

		return $this->find('first', compact('fields', 'conditions'));
	}
public function get($id = null) {
		if (empty($id)) {
			return false;
		}

		$fields = [
			$this->alias . '.id',
			$this->alias . '.value',
		];
		$blockExists = $this->hasField('block');
		if ($blockExists) {
			$fields[] = $this->alias . '.block';
		}
		$conditions = [$this->alias . '.id' => $id];
		$this->recursive = -1;

		return $this->find('first', compact('fields', 'conditions'));
	}
public function get ( $ id = null ) { if ( empty ( $ id ) ) { return false ; } $ fields = [ $ this -> alias . '.id' , $ this -> alias . '.value' , ] ; $ blockExists = $ this -> hasField ( 'block' ) ; if ( $ blockExists ) { $ fields [ ] = $ this -> alias . '.block' ; } $ conditions = [ $ this -> alias . '.id' => $ id ] ; $ this -> recursive = - 1 ; return $ this -> find ( 'first' , compact ( 'fields' , 'conditions' ) ) ; }
Return name of department by record ID.

@param int|string $id The ID of the record to read.
@return array Name of department
Return name of department by record ID .