当前位置: 首页>>代码示例>>PHP>>正文


PHP PhabricatorApplicationTransactionEditor::extractFilePHIDsFromCustomTransaction方法代码示例

本文整理汇总了PHP中PhabricatorApplicationTransactionEditor::extractFilePHIDsFromCustomTransaction方法的典型用法代码示例。如果您正苦于以下问题:PHP PhabricatorApplicationTransactionEditor::extractFilePHIDsFromCustomTransaction方法的具体用法?PHP PhabricatorApplicationTransactionEditor::extractFilePHIDsFromCustomTransaction怎么用?PHP PhabricatorApplicationTransactionEditor::extractFilePHIDsFromCustomTransaction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PhabricatorApplicationTransactionEditor的用法示例。


在下文中一共展示了PhabricatorApplicationTransactionEditor::extractFilePHIDsFromCustomTransaction方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: extractFilePHIDsFromCustomTransaction

 protected function extractFilePHIDsFromCustomTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorPasteTransaction::TYPE_CONTENT:
             return array($xaction->getNewValue());
     }
     return parent::extractFilePHIDsFromCustomTransaction($object, $xaction);
 }
开发者ID:hrb518,项目名称:phabricator,代码行数:8,代码来源:PhabricatorPasteEditor.php

示例2: extractFilePHIDsFromCustomTransaction

 protected function extractFilePHIDsFromCustomTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case PhabricatorProjectTransaction::TYPE_IMAGE:
             $new = $xaction->getNewValue();
             if ($new) {
                 return array($new);
             }
             break;
     }
     return parent::extractFilePHIDsFromCustomTransaction($object, $xaction);
 }
开发者ID:jvlstudio,项目名称:phabricator,代码行数:12,代码来源:PhabricatorProjectTransactionEditor.php

示例3: extractFilePHIDsFromCustomTransaction

 protected function extractFilePHIDsFromCustomTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
     }
     return parent::extractFilePHIDsFromCustomTransaction($object, $xaction);
 }
开发者ID:kristain,项目名称:phabricator,代码行数:6,代码来源:DifferentialTransactionEditor.php

示例4: extractFilePHIDsFromCustomTransaction

 protected function extractFilePHIDsFromCustomTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     switch ($xaction->getTransactionType()) {
         case ConpherenceTransaction::TYPE_PICTURE:
         case ConpherenceTransaction::TYPE_PICTURE_CROP:
             return array($xaction->getNewValue());
     }
     return parent::extractFilePHIDsFromCustomTransaction($object, $xaction);
 }
开发者ID:patelhardik,项目名称:phabricator,代码行数:9,代码来源:ConpherenceEditor.php

示例5: extractFilePHIDsFromCustomTransaction

 protected function extractFilePHIDsFromCustomTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     $phids = parent::extractFilePHIDsFromCustomTransaction($object, $xaction);
     switch ($xaction->getTransactionType()) {
         case ManiphestTransaction::TYPE_COVER_IMAGE:
             $phids[] = $xaction->getNewValue();
             break;
     }
     return $phids;
 }
开发者ID:vinzent,项目名称:phabricator,代码行数:10,代码来源:ManiphestTransactionEditor.php

示例6: extractFilePHIDsFromCustomTransaction

 protected function extractFilePHIDsFromCustomTransaction(PhabricatorLiskDAO $object, PhabricatorApplicationTransaction $xaction)
 {
     $images = $this->getNewImages();
     $images = mpull($images, null, 'getPHID');
     switch ($xaction->getTransactionType()) {
         case PholioTransaction::TYPE_IMAGE_FILE:
             $file_phids = array();
             foreach ($xaction->getNewValue() as $image_phid) {
                 $image = idx($images, $image_phid);
                 if (!$image) {
                     continue;
                 }
                 $file_phids[] = $image->getFilePHID();
             }
             return $file_phids;
         case PholioTransaction::TYPE_IMAGE_REPLACE:
             $image_phid = $xaction->getNewValue();
             $image = idx($images, $image_phid);
             if ($image) {
                 return array($image->getFilePHID());
             }
             break;
     }
     return parent::extractFilePHIDsFromCustomTransaction($object, $xaction);
 }
开发者ID:pugong,项目名称:phabricator,代码行数:25,代码来源:PholioMockEditor.php


注:本文中的PhabricatorApplicationTransactionEditor::extractFilePHIDsFromCustomTransaction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。