本文整理匯總了PHP中Set::SetList方法的典型用法代碼示例。如果您正苦於以下問題:PHP Set::SetList方法的具體用法?PHP Set::SetList怎麽用?PHP Set::SetList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Set
的用法示例。
在下文中一共展示了Set::SetList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<?php
$sets = Set::SetList();
foreach ( $sets as $set )
{
View::Obj()->Component("set/cell", $set);
}
?>
示例2: array
<?php
// ****
// ****
// Legacy Notice
// This file is conforms to a very bad design. The new one is much better,
// but this file is part of a component that is going to be scrapped anyway.
// For a better example, look at the Views/Components/cube/ folder.
// ****
// ****
require_once "Records/set.php";
$sets = Set::SetList(true);
$s = array();
foreach ( $sets as $set )
{
$setString = $set->String();
$id = $set->ID();
if ( !$set->Active() )
{
$setString = "<span style=\"text-decoration: line-through;\">$setString</span>";
}
$s[] = $setString . "<a onclick='edit_set($id);'><img src='Views/img/arrow.png' /></a>";
}
$out = implode("<br />", $s);
echo $out;
?>