<?php $this->breadcrumbs = array('Spell check' => array('index'), 'Classes' => array('class'), $class->full_name()); $this->menu = array(array('label' => 'View Class', 'url' => array('class/view', 'id' => $class->id_class)), array('label' => 'Edit Class', 'url' => array('class/update', 'id' => $class->id_class)), array('label' => 'View Source', 'url' => array('generator/decl', 'id' => $class->id_class))); echo "<h2>" . CHtml::link($class->full_name(), array('class/view', 'id' => $class->id_class)) . "</h2>"; $desc_errors = SpellCheckController::check($class->description); $use_errors = SpellCheckController::check($class->usage); if (!empty($desc_errors) || !empty($pre_errors) || !empty($post_errors)) { $this->error_list($desc_errors, $class, "Description"); $this->error_list($use_errors, $class, "Usage"); } else { echo 'No errors'; } echo "<h2>Methods</h2>"; $this->renderPartial('methods', array('methods' => $class->with('methods')->methods)); echo "<h2>Attributes</h2>"; $this->renderPartial('attributes', array('attributes' => $class->with('attributes')->attributes));
<?php $this->breadcrumbs = array('Spell check' => array('index'), 'Packages'); if ($packages != null) { foreach ($packages as $model) { $desc_errors = SpellCheckController::check($model->description); if (!empty($desc_errors)) { echo "<h3>" . CHtml::link($model->full_name(), array('package/view', 'id' => $model->id_package)) . "</h3>"; $this->error_list($desc_errors, $model, "Description"); } } }
<?php $this->breadcrumbs = array('Spell check' => array('index'), 'Attributes' => array('attribute'), $attribute->full_name()); $this->menu = array(array('label' => 'View Class', 'url' => array('class/view', 'id' => $attribute->id_class)), array('label' => 'View Attribute', 'url' => array('class/attributeView', 'id' => $attribute->id_attribute)), array('label' => 'Edit Attribute', 'url' => array('class/attributeUpdate', 'id' => $attribute->id_attribute))); echo "<h2>" . CHtml::link($attribute->full_name(), array('class/attributeView', 'id' => $attribute->id_attribute)) . "</h2>"; $desc_errors = SpellCheckController::check($attribute->description); if (!empty($desc_errors)) { $this->error_list($desc_errors, $attribute, "Description"); } else { echo 'No errors'; }
<?php $this->breadcrumbs = array('Spell check' => array('index'), 'Methods' => array('method'), $method->full_name()); $this->menu = array(array('label' => 'View Class', 'url' => array('class/view', 'id' => $method->id_class)), array('label' => 'View Method', 'url' => array('class/methodView', 'id' => $method->id_method)), array('label' => 'Edit Method', 'url' => array('class/methodUpdate', 'id' => $method->id_method))); echo "<h2>" . CHtml::link($method->full_name(), array('class/methodView', 'id' => $method->id_method)) . "</h2>"; $desc_errors = SpellCheckController::check($method->description); $pre_errors = SpellCheckController::check($method->pre); $post_errors = SpellCheckController::check($method->post); $args = array(); foreach ($method->arguments as $arg) { $err = SpellCheckController::check($arg->description); if (!empty($err)) { $args[$arg->name] = $err; } } if (!empty($desc_errors) || !empty($pre_errors) || !empty($post_errors) || !empty($args)) { $this->error_list($desc_errors, $method, "Description"); $this->error_list($pre_errors, $method, "Pre"); $this->error_list($post_errors, $method, "Post"); foreach ($args as $n => $ae) { $this->error_list($ae, $method, $n); } } else { echo 'No errors'; }
<?php $this->breadcrumbs = array('Spell check' => array('index'), 'Packages' => array('package'), $package->full_name()); $this->menu = array(array('label' => 'View Package', 'url' => array('package/view', 'id' => $package->id_package)), array('label' => 'Edit Package', 'url' => array('package/update', 'id' => $package->id_package))); echo "<h2>" . CHtml::link($package->full_name(), array('package/view', 'id' => $package->id_package)) . "</h2>"; $desc_errors = SpellCheckController::check($package->description); if (!empty($desc_errors)) { $this->error_list($desc_errors, $package, "Description"); } else { echo 'No errors'; } $package->with('classes'); foreach ($package->classes as $class) { $this->renderPartial('class', array('class' => $class)); } $package->with('packages'); foreach ($package->packages as $package) { $this->renderPartial('package', array('package' => $package)); }