Skip to content

Commit

Permalink
More PHP 5.3 friendliness enhancements and strict mode compliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris committed Aug 6, 2009
1 parent a0b6757 commit adc5b68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion recess/recess/apps/tools/views/code/table.part.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,16 @@
echo '<tr>';
for($col = 0 ; $col < $columns ; $col++) {
$object = isset($objects[$perColumn*$col+$row]) ? $objects[$perColumn*$col+$row] : '';

$value = is_object($object) ? $object->name : '';
if($object instanceof RecessReflectorClass && $object->package() != null) {
$prefix = $object->package()->name . '.';
$linkTo = 'class';
} else {
$prefix = '';
$linkTo = 'package';
}
$linkTo = get_class($object) == 'RecessReflectorClass' ? 'class' : 'package';
//$linkTo = get_class($object) == 'RecessReflectorClass' ? 'class' : 'package';
echo '<td><a href="', $controller->urlTo($linkTo . 'Info', $prefix . $value),'">', $value, '</a></td>';
}
echo '</tr>';
Expand Down
2 changes: 1 addition & 1 deletion recess/recess/framework/ui/Container.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function __construct($part = 'default', $name = '') {
PartBlock::__construct($part, $this, $name, new ArrayBlock());
}

public static function make($part = 'default', $name = '') {
public static function make($part, $name, $value = '', $label = false) {
return new Container($part, $name);
}

Expand Down

0 comments on commit adc5b68

Please sign in to comment.