ArticleTypeField::getArticleType PHP Method

getArticleType() public method

Returns the article type name.
public getArticleType ( ) : string
return string
    public function getArticleType()
    {
        return $this->m_data['type_name'];
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * An article type is a dynamic table that is created for an article
  * to allow different publications to display their content in different
  * ways.
  *
  * @param string $p_articleType
  */
 public function ArticleType($p_articleType)
 {
     $this->m_metadata = new ArticleTypeField($p_articleType, 'NULL');
     $this->m_name = $this->m_metadata->getArticleType();
     $this->m_dbTableName = 'X' . $this->m_name;
     if ($this->m_metadata->exists()) {
         // Get user-defined values.
         $this->getUserDefinedColumns();
         foreach ($this->m_dbColumns as $columnMetaData) {
             $this->m_columnNames[] = $columnMetaData->getName();
         }
     } else {
         $this->m_dbColumns = array();
         $this->m_publicFields = array();
     }
 }
All Usage Examples Of ArticleTypeField::getArticleType