Search:

# CWIS Developers Documentation

- Main Page
- Classes
- Files

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# ResourceFactory Class Reference

Inheritance diagram for ResourceFactory:

[legend]
Collaboration diagram for ResourceFactory:

[legend]
List of all members.

## Public Member Functions
| ResourceFactory ()
| DuplicateResource ($ResourceId)
| ClearQualifier ($ObjectOrId, $NewObjectOrId=NULL)
| GetRatedResourceCount ()
| GetRatedResourceUserCount ()
| GetRecentlyReleasedResources ($Count=10, $Offset=0, $MaxDaysToGoBack=90)
| GetResourceIdsSortedBy ($FieldName, $Ascending=TRUE, $Limit=NULL)
| GetTimestampOfLastResourceModification ($OnlyReleasedResources=TRUE)
| GetPossibleFieldNames ()
| GetMatchingResources ($ValuesToMatch)

## Detailed Description

Definition at line 21 of file ResourceFactory.php.

## Member Function Documentation

ResourceFactory::ClearQualifier | ( | $ | ObjectOrId,
|  | $ | NewObjectOrId = `NULL` |
| ) |  |  |

Definition at line 62 of file ResourceFactory.php.

ResourceFactory::DuplicateResource | ( | $ | ResourceId | ) |

Definition at line 33 of file ResourceFactory.php.

References ItemFactory::Status().

ResourceFactory::GetMatchingResources | ( | $ | ValuesToMatch | ) |

Definition at line 267 of file ResourceFactory.php.

References ItemFactory::$DB, ItemFactory::$FieldId, MetadataSchema::MDFTYPE_DATE, MetadataSchema::MDFTYPE_FLAG, MetadataSchema::MDFTYPE_NUMBER, MetadataSchema::MDFTYPE_PARAGRAPH, MetadataSchema::MDFTYPE_POINT, MetadataSchema::MDFTYPE_TEXT, MetadataSchema::MDFTYPE_TIMESTAMP, and MetadataSchema::MDFTYPE_URL.

ResourceFactory::GetPossibleFieldNames | ( |  | ) |

Definition at line 250 of file ResourceFactory.php.

ResourceFactory::GetRatedResourceCount | ( |  | ) |

Definition at line 113 of file ResourceFactory.php.

ResourceFactory::GetRatedResourceUserCount | ( |  | ) |

Definition at line 122 of file ResourceFactory.php.

ResourceFactory::GetRecentlyReleasedResources | ( | $ | Count = `10`,
|  | $ | Offset = `0`,
|  | $ | MaxDaysToGoBack = `90` |
| ) |  |  |

Definition at line 131 of file ResourceFactory.php.

ResourceFactory::GetResourceIdsSortedBy | ( | $ | FieldName,
|  | $ | Ascending = `TRUE`,
|  | $ | Limit = `NULL` |
| ) |  |  |

Definition at line 160 of file ResourceFactory.php.

References MetadataSchema::MDFTYPE_DATE, MetadataSchema::MDFTYPE_NUMBER, MetadataSchema::MDFTYPE_PARAGRAPH, MetadataSchema::MDFTYPE_TEXT, MetadataSchema::MDFTYPE_TIMESTAMP, and MetadataSchema::MDFTYPE_URL.

ResourceFactory::GetTimestampOfLastResourceModification | ( | $ | OnlyReleasedResources = `TRUE` | ) |

Definition at line 240 of file ResourceFactory.php.

ResourceFactory::ResourceFactory | ( |  | ) |

Definition at line 26 of file ResourceFactory.php.

References ItemFactory::ItemFactory().

The documentation for this class was generated from the following file:

- ResourceFactory.php