/** * @return bool */ public function canRead() { if( !$this->isFull || !$this->user() ) return true; if( $this->isFull ) return ( in_array( $this->_applicationFull->attribute('id'), CountryApplicationLibrary::fetchAuthorizedApplicationIds() ) ); }
/** * Returns string of any additional CSS classes to apply * * @return string **/ protected function additionalClasses() { $typeIdentifier = $this->applicationObject->attribute( 'application_type' )->attribute( 'type_identifier' ); if ( $typeIdentifier == 'jama-network' ) return ' item-jama'; return ''; }
/** * @return string[] */ public function webtrendsParams() { $r = array( 'cg_n' => $this->applicationObject->attribute( 'webtrends_cg_n' ), 'ti' => $this->applicationObject->attribute( 'webtrends_ti' ), ); if( $this->attribute( 'webtrends_cg_n' ) ) $r['cg_n'] = $this->attribute( 'webtrends_cg_n' ); if( $this->attribute( 'webtrends_ti' ) ) $r['ti'] = $this->attribute( 'webtrends_ti' ); return $r; }