當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PhabricatorLiskDAO::setProfileImagePHID方法代碼示例

本文整理匯總了PHP中PhabricatorLiskDAO::setProfileImagePHID方法的典型用法代碼示例。如果您正苦於以下問題:PHP PhabricatorLiskDAO::setProfileImagePHID方法的具體用法?PHP PhabricatorLiskDAO::setProfileImagePHID怎麽用?PHP PhabricatorLiskDAO::setProfileImagePHID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PhabricatorLiskDAO的用法示例。


在下文中一共展示了PhabricatorLiskDAO::setProfileImagePHID方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             $name = $xaction->getNewValue();
             $object->setName($name);
             $object->setPrimarySlug(PhabricatorSlug::normalizeProjectSlug($name));
             return;
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             return;
         case PhabricatorProjectTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             $object->setProfileImagePHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_ICON:
             $object->setIcon($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_COLOR:
             $object->setColor($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_LOCKED:
             $object->setIsMembershipLocked($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:patelhardik,項目名稱:phabricator,代碼行數:28,代碼來源:PhabricatorProjectTransactionEditor.php

示例2: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             $object->setPhrictionSlug($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             return;
         case PhabricatorProjectTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             $object->setProfileImagePHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_ICON:
             $object->setIcon($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_COLOR:
             $object->setColor($xaction->getNewValue());
             return;
         case PhabricatorTransactions::TYPE_EDGE:
             return;
         case PhabricatorTransactions::TYPE_VIEW_POLICY:
             $object->setViewPolicy($xaction->getNewValue());
             return;
         case PhabricatorTransactions::TYPE_EDIT_POLICY:
             $object->setEditPolicy($xaction->getNewValue());
             return;
         case PhabricatorTransactions::TYPE_JOIN_POLICY:
             $object->setJoinPolicy($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:denghp,項目名稱:phabricator,代碼行數:35,代碼來源:PhabricatorProjectTransactionEditor.php

示例3: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhortuneMerchantTransaction::TYPE_NAME:
             $object->setName($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_DESCRIPTION:
             $object->setDescription($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_CONTACTINFO:
             $object->setContactInfo($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_INVOICEEMAIL:
             $object->setInvoiceEmail($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_INVOICEFOOTER:
             $object->setInvoiceFooter($xaction->getNewValue());
             return;
         case PhortuneMerchantTransaction::TYPE_PICTURE:
             $object->setProfileImagePHID($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:NeoArmageddon,項目名稱:phabricator,代碼行數:24,代碼來源:PhortuneMerchantEditor.php

示例4: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhameBlogTransaction::TYPE_NAME:
             return $object->setName($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_SUBTITLE:
             return $object->setSubtitle($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_DESCRIPTION:
             return $object->setDescription($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_FULLDOMAIN:
             $new_value = $xaction->getNewValue();
             if (strlen($new_value)) {
                 $uri = new PhutilURI($new_value);
                 $domain = $uri->getDomain();
                 $object->setDomain($domain);
             } else {
                 $object->setDomain(null);
             }
             $object->setDomainFullURI($new_value);
             return;
         case PhameBlogTransaction::TYPE_PROFILEIMAGE:
             return $object->setProfileImagePHID($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_HEADERIMAGE:
             return $object->setHeaderImagePHID($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_STATUS:
             return $object->setStatus($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_PARENTSITE:
             return $object->setParentSite($xaction->getNewValue());
         case PhameBlogTransaction::TYPE_PARENTDOMAIN:
             return $object->setParentDomain($xaction->getNewValue());
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:rchicoli,項目名稱:phabricator,代碼行數:33,代碼來源:PhameBlogEditor.php

示例5: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_NAME:
             $name = $xaction->getNewValue();
             $object->setName($name);
             if (!$this->getIsMilestone()) {
                 $object->setPrimarySlug(PhabricatorSlug::normalizeProjectSlug($name));
             }
             return;
         case PhabricatorProjectTransaction::TYPE_SLUGS:
             return;
         case PhabricatorProjectTransaction::TYPE_STATUS:
             $object->setStatus($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             $object->setProfileImagePHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_ICON:
             $object->setIcon($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_COLOR:
             $object->setColor($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_LOCKED:
             $object->setIsMembershipLocked($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_PARENT:
             $object->setParentProjectPHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_MILESTONE:
             $number = $object->getParentProject()->loadNextMilestoneNumber();
             $object->setMilestoneNumber($number);
             $object->setParentProjectPHID($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_HASWORKBOARD:
             $object->setHasWorkboard($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_DEFAULT_SORT:
             $object->setDefaultWorkboardSort($xaction->getNewValue());
             return;
         case PhabricatorProjectTransaction::TYPE_DEFAULT_FILTER:
             $object->setDefaultWorkboardFilter($xaction->getNewValue());
             return;
     }
     return parent::applyCustomInternalTransaction($object, $xaction);
 }
開發者ID:kalsolio,項目名稱:phabricator,代碼行數:47,代碼來源:PhabricatorProjectTransactionEditor.php

示例6: applyCustomInternalTransaction

 protected function applyCustomInternalTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     $make_author_recent_participant = true;
     switch ($xaction->getTransactionType()) {
         case ConpherenceTransaction::TYPE_TITLE:
             $object->setTitle($xaction->getNewValue());
             break;
         case ConpherenceTransaction::TYPE_TOPIC:
             $object->setTopic($xaction->getNewValue());
             break;
         case ConpherenceTransaction::TYPE_PICTURE:
             $object->setProfileImagePHID($xaction->getNewValue());
             break;
         case ConpherenceTransaction::TYPE_PARTICIPANTS:
             if (!$this->getIsNewObject()) {
                 $old_map = array_fuse($xaction->getOldValue());
                 $new_map = array_fuse($xaction->getNewValue());
                 // if we added people, add them to the end of "recent" participants
                 $add = array_keys(array_diff_key($new_map, $old_map));
                 // if we remove people, then definintely remove them from "recent"
                 // participants
                 $del = array_keys(array_diff_key($old_map, $new_map));
                 if ($add || $del) {
                     $participants = $object->getRecentParticipantPHIDs();
                     if ($add) {
                         $participants = array_merge($participants, $add);
                     }
                     if ($del) {
                         $participants = array_diff($participants, $del);
                         $actor = $this->requireActor();
                         if (in_array($actor->getPHID(), $del)) {
                             $make_author_recent_participant = false;
                         }
                     }
                     $participants = array_slice(array_unique($participants), 0, 10);
                     $object->setRecentParticipantPHIDs($participants);
                 }
             }
             break;
     }
     if ($make_author_recent_participant) {
         $this->makeAuthorMostRecentParticipant($object, $xaction);
     }
 }
開發者ID:NeoArmageddon,項目名稱:phabricator,代碼行數:44,代碼來源:ConpherenceEditor.php


注:本文中的PhabricatorLiskDAO::setProfileImagePHID方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。