|
KWeb
6.4
|
Public Member Functions | |
| __construct () | |
| error ($msg) | |
| logMsg ($type, $where, $msg, $dump= '') | |
| getClearData ($all=false) | |
| Zwraca parametr data z usuniętymi polami specjalnymi. | |
| getPrinter () | |
| Zwraca tablicę identyfikatorów wyświetlania. | |
| getLinkId () | |
| getParentId () | |
| getParent ($object=true, $byOpenedPath=false) | |
| getItemId () | |
| getItem () | |
| getAttrId () | |
| getCreated () | |
| getLinkType () | |
| getLinkStatus () | |
| getUserId () | |
| getObjectOwner ($object=true) | |
| Zwraca id użytkownika. | |
| getLinkPos () | |
| getObjectId () | |
| getTitle () | |
| | |
| getObjectDebug () | |
| isWeakLink () | |
| Czy połšczenie jest słabe (np. | |
| isDraft () | |
| isPending () | |
| isRemoverObject () | |
| Czy jest obiektem usuwajšcym?. | |
| isRemoved () | |
| Czy obiekt jest usunięty... | |
| isRemovedSelf () | |
| Czy obiekt jest oznaczony jako usunięty... | |
| isTemp () | |
| Czy jest obiektem tymczasowym?. | |
| getParentAccessRights ($userId, $useLinkApply=true) | |
| getItemAccessRights ($userId, $useLinkApply=true) | |
| getLinkAccessRights ($userId, $accessType=self::ACCESS_PESSIMISTIC) | |
| Zwraca połączone prawa elementów powiązanych. | |
| checkAccess ($access, $userId=false, $optimistic=true) | |
| Returns TRUE if specified user has all specified access rights on this object. | |
| canView ($userId=false) | |
| Sprawdza od razu czy możemy oglšdać sam element... | |
| canRemove ($userId=false) | |
| Uniwersalne zapytanie, czy user może usunšć ten element. | |
| canPublish ($userId=false) | |
| Uniwersalne zapytanie, czy user może publikować ten element. | |
| getObjectGenre () | |
| getObjectType () | |
| getCreatedTime () | |
| getPreviewFile ($lang=false) | |
| Returns path to the file, that can be used as an object's preview. | |
| getPreview ($imgPreview, array $options=array(), $lang=false) | |
| Generates preview for the object, using supplied $imgPreview object If the object doesnt support previews, it should return empty object (new ImgPreviewResult()) | |
| isPublishedLink () | |
| Czy link jest publicznie dostępny? Link publiczny: | |
| getObjectCopy ($newData) | |
| Tworzy kopię linku ZE sprawdzaniem uprawnień! | |
| removeLink ($skipTrash=false) | |
| Usuwa link ze sprawdzaniem uprawnień, robieniem draftów itd... | |
| isBeingCreated () | |
| isNew () | |
| Czy jest obiektem zupełnie nowym?. | |
| isStoreable () | |
| setDraft () | |
| setPending () | |
| setPublished () | |
| setPosition ($pos) | |
| setRemoved () | |
| resetPosition () | |
| setParentId ($parentId) | |
| setAttrId ($attrId) | |
| setLinkType ($linkType) | |
| setItemId ($itemId) | |
| commitUpdates () | |
| Commits all pending updates to the data sources. | |
Static Public Member Functions | |
| static | fetchObjects ($ids, $params) |
| Zwraca tablicę obiektów. | |
| static | getSqlPublishedVersion ($prefix='') |
| Zwraca zapytanie WHERE dla opublikowanych wersji . | |
| static | findLink ($parentId, $itemId, $attrId, $linkType) |
| static | findStandardLink ($itemId) |
| static | createNewLink ($parentId, $itemId, $attrId, $linkType) |
| Tworzy nowy link BEZ sprawdzania uprawnień! | |
Data Fields | |
| const | ACCESS_OPTIMISTIC = false |
| Uses all permissions from child and parent (applying to link) | |
| const | ACCESS_PESSIMISTIC = true |
| Uses only permissions set on both child and parent (applying to link) | |
| const | ACCESS_CHILD = 'child' |
| Uses only child's permissions. | |
| const | ACCESS_PARENT = 'parent' |
| Uses only parent's permissions. | |
Static Protected Member Functions | |
| static | buildLinkObject ($data, $store=true) |
| KWebLink::__construct | ( | ) |
Reimplemented from KWebObject.
| static KWebLink::buildLinkObject | ( | $ | data, |
| $ | store = true |
||
| ) | [static, protected] |
| KWebLink::canPublish | ( | $ | userId = false | ) |
Uniwersalne zapytanie, czy user może publikować ten element.
Reimplemented from KWebObject.
| KWebLink::canRemove | ( | $ | userId = false | ) |
Uniwersalne zapytanie, czy user może usunšć ten element.
Reimplemented from KWebObject.
| KWebLink::canView | ( | $ | userId = false | ) |
Sprawdza od razu czy możemy oglšdać sam element...
Reimplemented from KWebObject.
| KWebLink::checkAccess | ( | $ | right, |
| $ | apply = false, |
||
| $ | user = true |
||
| ) |
Returns TRUE if specified user has all specified access rights on this object.
Reimplemented from KWebObject.
| KWebLink::commitUpdates | ( | ) |
Commits all pending updates to the data sources.
Reimplemented from KWebObject.
| static KWebLink::createNewLink | ( | $ | parentId, |
| $ | itemId, | ||
| $ | attrId, | ||
| $ | linkType | ||
| ) | [static] |
Tworzy nowy link BEZ sprawdzania uprawnień!
| KWebLink::error | ( | $ | msg | ) |
Reimplemented from KWebObject.
| static KWebLink::fetchObjects | ( | $ | ids, |
| $ | params | ||
| ) | [static] |
Zwraca tablicę obiektów.
Reimplemented from KWebObject.
| static KWebLink::findLink | ( | $ | parentId, |
| $ | itemId, | ||
| $ | attrId, | ||
| $ | linkType | ||
| ) | [static] |
| static KWebLink::findStandardLink | ( | $ | itemId | ) | [static] |
| KWebLink::getAttrId | ( | ) |
| KWebLink::getClearData | ( | $ | all = false | ) |
Zwraca parametr data z usuniętymi polami specjalnymi.
Reimplemented from KWebObject.
| KWebLink::getCreated | ( | ) |
| KWebLink::getCreatedTime | ( | ) |
| KWebLink::getItem | ( | ) |
| KWebLink::getItemAccessRights | ( | $ | userId, |
| $ | useLinkApply = true |
||
| ) |
| KWebLink::getItemId | ( | ) |
| KWebLink::getLinkAccessRights | ( | $ | userId, |
| $ | accessType = self::ACCESS_PESSIMISTIC |
||
| ) |
Zwraca połączone prawa elementów powiązanych.
| optimistic | true - zwraca najlepsze uprawnienia z obu, false - zwraca tylko wspólne uprawnienia |
| KWebLink::getLinkId | ( | ) |
| KWebLink::getLinkPos | ( | ) |
| KWebLink::getLinkStatus | ( | ) |
| KWebLink::getLinkType | ( | ) |
| KWebLink::getObjectCopy | ( | $ | newData | ) |
Tworzy kopię linku ZE sprawdzaniem uprawnień!
Reimplemented from KWebObject.
| KWebLink::getObjectDebug | ( | ) |
Reimplemented from KWebObject.
| KWebLink::getObjectGenre | ( | ) |
Reimplemented from KWebObject.
| KWebLink::getObjectId | ( | ) |
Reimplemented from KWebObject.
| KWebLink::getObjectOwner | ( | $ | object = true | ) |
| KWebLink::getObjectType | ( | ) |
Reimplemented from KWebObject.
| KWebLink::getParent | ( | $ | object = true, |
| $ | byOpenedPath = false |
||
| ) |
Reimplemented from KWebObject.
| KWebLink::getParentAccessRights | ( | $ | userId, |
| $ | useLinkApply = true |
||
| ) |
| KWebLink::getParentId | ( | ) |
| KWebLink::getPreview | ( | $ | imgPreview, |
| array $ | options = array(), |
||
| $ | lang = false |
||
| ) |
Generates preview for the object, using supplied $imgPreview object If the object doesnt support previews, it should return empty object (new ImgPreviewResult())
By default this function uses file returned by getPreviewFile() as a preview source
| $imgPreview | ImgPreview instance, or instance name |
Reimplemented from KWebObject.
| KWebLink::getPreviewFile | ( | $ | lang = false | ) |
Returns path to the file, that can be used as an object's preview.
Reimplemented from KWebObject.
| KWebLink::getPrinter | ( | ) |
Zwraca tablicę identyfikatorów wyświetlania.
Wg. tej listy wyszukiwane są szablony w widokach - od ostatniego do pierwszego... Dla typów spoza rodzaju "item" identyfikatory powinny zawierać nazwę rodzaju aby nie wchodzić w konflikt z identyfikatorami z item.
Reimplemented from KWebObject.
| static KWebLink::getSqlPublishedVersion | ( | $ | prefix = '' | ) | [static] |
Zwraca zapytanie WHERE dla opublikowanych wersji .
| prefix | Przedrostek nazwy tablicy - np. 's.' - dodawany do pól w zapytaniu |
Reimplemented from KWebObject.
| KWebLink::getTitle | ( | ) |
Reimplemented from KWebObject.
| KWebLink::getUserId | ( | ) |
| KWebLink::isBeingCreated | ( | ) |
| KWebLink::isDraft | ( | ) |
Reimplemented from KWebObject.
| KWebLink::isNew | ( | ) |
Czy jest obiektem zupełnie nowym?.
Reimplemented from KWebObject.
| KWebLink::isPending | ( | ) |
Reimplemented from KWebObject.
| KWebLink::isPublishedLink | ( | ) |
Czy link jest publicznie dostępny? Link publiczny:
| KWebLink::isRemoved | ( | ) |
Czy obiekt jest usunięty...
Reimplemented from KWebObject.
| KWebLink::isRemovedSelf | ( | ) |
Czy obiekt jest oznaczony jako usunięty...
Reimplemented from KWebObject.
| KWebLink::isRemoverObject | ( | ) |
Czy jest obiektem usuwajšcym?.
Reimplemented from KWebObject.
| KWebLink::isStoreable | ( | ) |
| KWebLink::isTemp | ( | ) |
Czy jest obiektem tymczasowym?.
Reimplemented from KWebObject.
| KWebLink::isWeakLink | ( | ) |
Czy połšczenie jest słabe (np.
RELATED)
| KWebLink::logMsg | ( | $ | type, |
| $ | where, | ||
| $ | msg, | ||
| $ | dump = '' |
||
| ) |
Reimplemented from KWebObject.
| KWebLink::removeLink | ( | $ | skipTrash = false | ) |
Usuwa link ze sprawdzaniem uprawnień, robieniem draftów itd...
| KWebLink::resetPosition | ( | ) |
| KWebLink::setAttrId | ( | $ | attrId | ) |
| KWebLink::setDraft | ( | ) |
| KWebLink::setItemId | ( | $ | itemId | ) |
| KWebLink::setLinkType | ( | $ | linkType | ) |
| KWebLink::setParentId | ( | $ | parentId | ) |
ze sprawdzaniem czy już nie istniejš takie i podmiana ew. parent_id w obiektach...
| KWebLink::setPending | ( | ) |
| KWebLink::setPosition | ( | $ | pos | ) |
| KWebLink::setPublished | ( | ) |
| KWebLink::setRemoved | ( | ) |
| const KWebLink::ACCESS_CHILD = 'child' |
Uses only child's permissions.
| const KWebLink::ACCESS_OPTIMISTIC = false |
Uses all permissions from child and parent (applying to link)
| const KWebLink::ACCESS_PARENT = 'parent' |
Uses only parent's permissions.
| const KWebLink::ACCESS_PESSIMISTIC = true |
Uses only permissions set on both child and parent (applying to link)