convertObjectType() public static method

Convert from value to the String of the Object Type
public static convertObjectType ( type $value )
$value type
Ejemplo n.º 1
0
<?php

$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array(array('name' => 'taxonomy_id', 'type' => 'raw', 'value' => $model->taxonomy_id), array('name' => 'name', 'type' => 'raw', 'value' => CHtml::link($model->name, array("update", "id" => $model->taxonomy_id))), array('name' => 'type', 'type' => 'raw', 'value' => Object::convertObjectType($model->type)), 'description', array('name' => 'lang', 'type' => 'raw', 'value' => Language::convertLanguage($model->lang)))));
Ejemplo n.º 2
0
<?php

$this->widget('zii.widgets.CDetailView', array('data' => $model, 'attributes' => array(array('name' => 'object_id', 'type' => 'raw', 'value' => $model->object_id), array('name' => 'object_name', 'type' => 'raw', 'value' => CHtml::link($model->object_name, array("update", "id" => $model->object_id))), 'object_author_name', array('name' => 'comment_status', 'value' => Object::convertObjectCommentType($model->comment_status)), array('name' => 'object_date', 'value' => date("Y-m-d H:i:s", $model->object_date)), array('name' => 'object_type', 'type' => 'raw', 'value' => Object::convertObjectType($model->object_type)), array('name' => 'object_status', 'type' => 'raw', 'value' => Object::convertObjectStatus($model->object_status)), 'object_view', array('label' => t('cms', 'History'), 'type' => 'raw', 'value' => Object::getTransferHistory($model)), array('name' => 'object_content', 'type' => 'raw', 'value' => $model->object_content))));