本文整理汇总了PHP中entryPeer::retrievePendingEntries方法的典型用法代码示例。如果您正苦于以下问题:PHP entryPeer::retrievePendingEntries方法的具体用法?PHP entryPeer::retrievePendingEntries怎么用?PHP entryPeer::retrievePendingEntries使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类entryPeer
的用法示例。
在下文中一共展示了entryPeer::retrievePendingEntries方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updatePendingEntries
public static function updatePendingEntries(&$xml_doc)
{
$really_pending_entries = array();
list($pending_str, $pending_arr) = myMetadataUtils::getPending($xml_doc);
// $entries_in_roughcut = myMetadataUtils::getAllEntries( $xml_doc );
$pending_arr_not_in_roughcut = $pending_arr;
//array();
// we should not attemp to match pending entries with the list in the XML - they will never be there
// assuming they are really pending
/* foreach ( $pending_arr as $pending )
{
if ( in_array ( $pending , $entries_in_roughcut ) )
{
// we need to keep this entry pending - it's used in the xml
$pending_arr_not_in_roughcut[] = $pending;
}
}
*/
if (count($pending_arr_not_in_roughcut) > 0) {
// get all the enrties that are really pending:
$pending = entryPeer::retrievePendingEntries($pending_arr_not_in_roughcut);
foreach ($pending as $entry) {
$really_pending_entries[] = $entry->getId();
}
}
myMetadataUtils::setPending($xml_doc, $really_pending_entries);
}