• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP AbstractHandler类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: __construct

 /**
  * Constructs a new TargetHandler
  *
  * @param  object  the ExpatParser object
  * @param  object  the parent handler that invoked this handler
  * @param  object  the ProjectConfigurator object
  */
 function __construct(AbstractSAXParser $parser, AbstractHandler $parentHandler, ProjectConfigurator $configurator)
 {
     parent::__construct($parser, $parentHandler);
     $this->configurator = $configurator;
 }
开发者ID:jonphipps,项目名称:Metadata-Registry,代码行数:12,代码来源:TargetHandler.php


示例2: __construct

 /**
  * Constructs a new TargetHandler
  *
  * @param AbstractSAXParser $parser
  * @param AbstractHandler $parentHandler
  * @param ProjectConfigurator $configurator
  * @param PhingXMLContext $context
  * @internal param the $object ExpatParser object
  * @internal param the $object parent handler that invoked this handler
  * @internal param the $object ProjectConfigurator object
  */
 public function __construct(AbstractSAXParser $parser, AbstractHandler $parentHandler, ProjectConfigurator $configurator, PhingXMLContext $context)
 {
     parent::__construct($parser, $parentHandler);
     $this->configurator = $configurator;
     $this->context = $context;
 }
开发者ID:tammyd,项目名称:phing,代码行数:17,代码来源:TargetHandler.php


示例3: endElement

 /** End element */
 public function endElement($parser, $name)
 {
     parent::endElement($parser, $name);
     if ($name == 'SITE') {
         $start_time = gmdate(FMT_DATETIME, $this->StartTimeStamp);
         $end_time = gmdate(FMT_DATETIME, $this->EndTimeStamp);
         $this->Build->ProjectId = $this->projectid;
         $this->Build->StartTime = $start_time;
         $this->Build->EndTime = $end_time;
         $this->Build->SubmitTime = gmdate(FMT_DATETIME);
         $this->Build->SetSubProject($this->SubProjectName);
         $this->Build->GetIdFromName($this->SubProjectName);
         $this->Build->RemoveIfDone();
         // If the build doesn't exist we add it
         if ($this->Build->Id == 0) {
             $this->Build->InsertErrors = false;
             add_build($this->Build, $this->scheduleid);
         } else {
             // Otherwise make sure that it's up-to-date.
             $this->Build->UpdateBuild($this->Build->Id, -1, -1);
         }
         $GLOBALS['PHP_ERROR_BUILD_ID'] = $this->Build->Id;
         $this->CoverageSummary->BuildId = $this->Build->Id;
         // Insert coverage summary
         $this->CoverageSummary->Insert(true);
         $this->CoverageSummary->ComputeDifference();
     } elseif ($name == 'FILE') {
         $this->CoverageSummary->AddCoverage($this->Coverage);
     } elseif ($name == 'LABEL') {
         if (isset($this->Coverage)) {
             $this->Coverage->AddLabel($this->Label);
         }
     }
 }
开发者ID:kitware,项目名称:cdash,代码行数:35,代码来源:coverage_handler.php


示例4: __construct

 /**
  * Constructor
  *
  * @throws \RuntimeException
  * @internal param array $options Optional parameters
  *
  * @since    2.0
  */
 public function __construct($options)
 {
     if (!static::isSupported()) {
         throw new \RuntimeException('APC Extension is not available', 500);
     }
     parent::__construct($options);
 }
开发者ID:kiyayeh,项目名称:windwalker,代码行数:15,代码来源:ApcHandler.php


示例5: endElement

 /** endElement function */
 public function endElement($parser, $name)
 {
     parent::endElement($parser, $name);
     if ($name == 'NOTE') {
         $this->Build->ProjectId = $this->projectid;
         $this->Build->GetIdFromName($this->SubProjectName);
         $this->Build->RemoveIfDone();
         // If the build doesn't exist we add it.
         if ($this->Build->Id == 0) {
             $this->Build->SetSubProject($this->SubProjectName);
             // Since we only have precision in minutes (not seconds) here,
             // set the start time at the end of the minute so it can be overridden
             // by any more precise XML file received later.
             $start_time = gmdate(FMT_DATETIME, strtotime($this->Note->Time) + 59);
             $this->Build->StartTime = $start_time;
             $this->Build->EndTime = $this->Note->Time;
             $this->Build->SubmitTime = gmdate(FMT_DATETIME);
             $this->Build->InsertErrors = false;
             add_build($this->Build, $this->scheduleid);
         }
         if ($this->Build->Id > 0) {
             // Insert the note
             $this->Note->BuildId = $this->Build->Id;
             $this->Note->Insert();
         } else {
             add_log('Trying to add a note to a nonexistent build', 'note_handler.php', LOG_ERR);
         }
     }
 }
开发者ID:kitware,项目名称:cdash,代码行数:30,代码来源:note_handler.php


示例6: endElement

 /** End Element */
 public function endElement($parser, $name)
 {
     $parent = $this->getParent();
     // should be before endElement
     parent::endElement($parser, $name);
     if ($name == "STARTDATETIME" && $parent == 'COVERAGELOG') {
         $start_time = gmdate(FMT_DATETIME, $this->StartTimeStamp);
         $this->Build->ProjectId = $this->projectid;
         $this->BuildId = $this->Build->GetIdFromName($this->SubProjectName);
         if ($this->BuildId == 0) {
             $t = 'Cannot add a coverage log to a build that does not exist';
             $f = 'CoverageLogHandler::endElement';
             add_log($t, $f, LOG_ERR, $this->projectid);
         }
     } else {
         if ($name == 'LINE') {
             $this->CoverageFile->File .= '<br>';
             // cannot be <br/> for backward compatibility
         } else {
             if ($name == 'FILE') {
                 if ($this->BuildId != 0) {
                     $this->CoverageFile->Update($this->BuildId);
                     $this->CoverageFileLog->BuildId = $this->BuildId;
                     $this->CoverageFileLog->FileId = $this->CoverageFile->Id;
                     $this->CoverageFileLog->Insert();
                 }
                 unset($this->CoverageFile);
                 unset($this->CoverageFileLog);
             }
         }
     }
 }
开发者ID:rpshaw,项目名称:CDash,代码行数:33,代码来源:coverage_log_handler.php


示例7: endElement

 /** End element */
 public function endElement($parser, $name)
 {
     parent::endElement($parser, $name);
     if ($name == 'SITE') {
         $this->Site->Insert();
     } elseif ($name == 'UPDATE') {
         $this->Build->SiteId = $this->Site->Id;
         $start_time = gmdate(FMT_DATETIME, $this->StartTimeStamp);
         $end_time = gmdate(FMT_DATETIME, $this->EndTimeStamp);
         $submit_time = gmdate(FMT_DATETIME);
         $this->Build->StartTime = $start_time;
         $this->Build->EndTime = $end_time;
         $this->Build->SubmitTime = $submit_time;
         $this->Build->ProjectId = $this->projectid;
         $this->Build->GetIdFromName($this->SubProjectName);
         // Update.xml doesn't include SubProject information.
         // Check if GetIdFromName returned a child build, and
         // if so, change our buildid to point at the parent instead.
         $parentid = $this->Build->LookupParentBuildId();
         if ($parentid > 0) {
             $this->Build->Id = $parentid;
         }
         $this->Build->RemoveIfDone();
         // If the build doesn't exist we add it
         if ($this->Build->Id == 0) {
             $this->Build->SetSubProject($this->SubProjectName);
             $this->Build->Append = $this->Append;
             $this->Build->InsertErrors = false;
             add_build($this->Build, $this->scheduleid);
         } else {
             // Otherwise make sure that it's up-to-date.
             $this->Build->UpdateBuild($this->Build->Id, -1, -1);
         }
         $GLOBALS['PHP_ERROR_BUILD_ID'] = $this->Build->Id;
         $this->Update->BuildId = $this->Build->Id;
         $this->Update->StartTime = $start_time;
         $this->Update->EndTime = $end_time;
         // Insert the update
         $this->Update->Insert();
         global $CDASH_ENABLE_FEED;
         if ($CDASH_ENABLE_FEED) {
             // We need to work the magic here to have a good description
             $this->Feed->InsertUpdate($this->projectid, $this->Build->Id);
         }
         if ($this->Update->Command === '') {
             // If the UpdateCommand was not set, then this was a
             // "version only" update.  This means that CTest only told us
             // what version of the code is being built, not what changed
             // since last time.  In this case we need to query the remote
             // repository to figure out what changed.
             perform_version_only_diff($this->Update, $this->projectid);
         }
         // Compute the update statistics
         $this->Build->ComputeUpdateStatistics();
     } elseif ($name == 'UPDATED' || $name == 'CONFLICTING' || $name == 'MODIFIED') {
         $this->Update->AddFile($this->UpdateFile);
         unset($this->UpdateFile);
     }
 }
开发者ID:kitware,项目名称:cdash,代码行数:60,代码来源:update_handler.php


示例8: __construct

 /**
  * Constructor
  *
  * @param   \Memcache $memcache A Memcache instance
  * @param   array     $options  Optional parameters.
  *
  * @throws \RuntimeException
  * @since   2.0
  */
 public function __construct(\Memcache $memcache = null, $options = array())
 {
     if (!self::isSupported()) {
         throw new \RuntimeException('Memcache Extension is not available', 500);
     }
     $this->memcache = $memcache ?: new \Memcache();
     $this->ttl = isset($options['expiretime']) ? (int) $options['expiretime'] : 86400;
     parent::__construct($options);
 }
开发者ID:rokite,项目名称:windwalker,代码行数:18,代码来源:MemcacheHandler.php


示例9: __construct

 /**
  *
  * @param callable|HandlerInterface $handler
  *        	Handler or factory callable($record, $fingersCrossedHandler).
  * @param int $factor
  *        	Sample factor
  */
 public function __construct($handler, $factor)
 {
     parent::__construct();
     $this->handler = $handler;
     $this->factor = $factor;
     if (!$this->handler instanceof HandlerInterface && !is_callable($this->handler)) {
         throw new \RuntimeException("The given handler (" . json_encode($this->handler) . ") is not a callable nor a Monolog\\Handler\\HandlerInterface object");
     }
 }
开发者ID:ngitimfoyo,项目名称:Nyari-AppPHP,代码行数:16,代码来源:SamplingHandler.php


示例10:

 /**
  *  Constructs a new NestedElement handler and sets up everything.
  *
  *  @param  object  the ExpatParser object
  *  @param  object  the parent handler that invoked this handler
  *  @param  object  the ProjectConfigurator object
  *  @param  object  the parent object this element is contained in
  *  @param  object  the parent wrapper object
  *  @param  object  the target object this task is contained in
  *  @access public
  */
 function __construct($parser, $parentHandler, $configurator, $parent, $parentWrapper, $target) {
     parent::__construct($parser, $parentHandler);
     $this->configurator = $configurator;
     if ($parent instanceof TaskAdapter) {
         $this->parent = $parent->getProxy();
     } else {
         $this->parent = $parent;
     }
     $this->parentWrapper = $parentWrapper;
     $this->target = $target;
 }
开发者ID:nationalfield,项目名称:symfony,代码行数:22,代码来源:NestedElementHandler.php


示例11: __construct

 /**
  *  Constructs a new NestedElement handler and sets up everything.
  *
  * @param  object  the ExpatParser object
  * @param  object  the parent handler that invoked this handler
  * @param  object  the ProjectConfigurator object
  * @param  object  the parent object this element is contained in
  * @param  object  the parent wrapper object
  * @param  object  the target object this task is contained in
  */
 public function __construct($parser, $parentHandler, $configurator, $parent = null, $parentWrapper = null, $target = null)
 {
     parent::__construct($parser, $parentHandler);
     $this->configurator = $configurator;
     if ($parentWrapper != null) {
         $this->parent = $parentWrapper->getProxy();
     } else {
         $this->parent = $parent;
     }
     $this->parentWrapper = $parentWrapper;
     $this->target = $target;
 }
开发者ID:xxspartan16,项目名称:BMS-Market,代码行数:22,代码来源:ElementHandler.php


示例12: endElement

 /** endElement function */
 public function endElement($parser, $name)
 {
     parent::endElement($parser, $name);
     if ($name == 'NOTE') {
         if ($this->BuildId > 0) {
             // Insert the note
             $this->Note->BuildId = $this->BuildId;
             $this->Note->Insert();
         } else {
             add_log("note_handler.php", "Trying to add a note to an unexisting build");
         }
     }
 }
开发者ID:rpshaw,项目名称:CDash,代码行数:14,代码来源:note_handler.php


示例13: endElement

 /** End element */
 public function endElement($parser, $name)
 {
     parent::endElement($parser, $name);
     if ($name == 'SITE') {
         $this->Site->Insert();
     } else {
         if ($name == 'UPDATE') {
             $this->Build->SiteId = $this->Site->Id;
             $start_time = gmdate(FMT_DATETIME, $this->StartTimeStamp);
             $end_time = gmdate(FMT_DATETIME, $this->EndTimeStamp);
             $submit_time = gmdate(FMT_DATETIME);
             $this->Build->ProjectId = $this->projectid;
             $buildid = $this->Build->GetIdFromName($this->SubProjectName);
             // If the build doesn't exist we add it
             if ($buildid == 0) {
                 $this->Build->ProjectId = $this->projectid;
                 $this->Build->StartTime = $start_time;
                 $this->Build->EndTime = $end_time;
                 $this->Build->SubmitTime = $submit_time;
                 $this->Build->InsertErrors = false;
                 add_build($this->Build, $this->scheduleid);
                 $buildid = $this->Build->Id;
             } else {
                 $this->Build->Id = $buildid;
                 $this->Build->ProjectId = $this->projectid;
                 $this->Build->StartTime = $start_time;
                 $this->Build->EndTime = $end_time;
                 $this->Build->SubmitTime = $submit_time;
             }
             $GLOBALS['PHP_ERROR_BUILD_ID'] = $buildid;
             $this->Update->BuildId = $buildid;
             $this->Update->StartTime = $start_time;
             $this->Update->EndTime = $end_time;
             // Insert the update
             $this->Update->Insert();
             global $CDASH_ENABLE_FEED;
             if ($CDASH_ENABLE_FEED) {
                 // We need to work the magic here to have a good description
                 $this->Feed->InsertUpdate($this->projectid, $buildid);
             }
             // Compute the update statistics
             $this->Build->ComputeUpdateStatistics();
         } else {
             if ($name == 'UPDATED' || $name == 'CONFLICTING' || $name == 'MODIFIED') {
                 $this->Update->AddFile($this->UpdateFile);
                 unset($this->UpdateFile);
             }
         }
     }
 }
开发者ID:rpshaw,项目名称:CDash,代码行数:51,代码来源:update_handler.php


示例14: permissions

 /**
  * {@inheritdoc}
  */
 public function permissions($object, $context)
 {
     $permissions = parent::permissions($object, $context);
     /** Initialize permissions */
     $permissions['deals']['view'] = false;
     $permissions['payments']['view'] = false;
     $permissions['activities']['view'] = false;
     $permissions['phones']['view'] = false;
     /** Deal permissions */
     if ($this->securityContext->isGranted('ROLE_DEAL_VIEW_ALL')) {
         $permissions['deals']['view'] = true;
     }
     if ($this->securityContext->isGranted('ROLE_DEAL_VIEW_OWN') && $object->getUser() == $this->user) {
         $permissions['deals']['view'] = true;
     }
     $permissions['deals']['edit'] = $this->securityContext->isGranted('ROLE_DEAL_EDIT');
     $permissions['deals']['remove'] = $this->securityContext->isGranted('ROLE_DEAL_REMOVE');
     $permissions['deals']['add'] = $this->securityContext->isGranted('ROLE_DEAL_ADD');
     /** Payment permissions */
     if ($this->securityContext->isGranted('ROLE_PAYMENT_VIEW_ALL')) {
         $permissions['payments']['view'] = true;
     }
     if ($this->securityContext->isGranted('ROLE_PAYMENT_VIEW_OWN') && $object->getUser() == $this->user) {
         $permissions['payments']['view'] = true;
     }
     $permissions['payments']['edit'] = $this->securityContext->isGranted('ROLE_PAYMENT_EDIT');
     $permissions['payments']['remove'] = $this->securityContext->isGranted('ROLE_PAYMENT_REMOVE');
     $permissions['payments']['add'] = $this->securityContext->isGranted('ROLE_PAYMENT_ADD');
     /** Activity permissions */
     if ($this->securityContext->isGranted('ROLE_ACTIVITY_VIEW_ALL')) {
         $permissions['activities']['view'] = true;
     }
     if ($this->securityContext->isGranted('ROLE_ACTIVITY_VIEW_OWN') && $object->getUser() == $this->user) {
         $permissions['activities']['view'] = true;
     }
     $permissions['activities']['add'] = $this->securityContext->isGranted('ROLE_ACTIVITY_ADD');
     $permissions['activities']['edit'] = $this->securityContext->isGranted('ROLE_ACTIVITY_EDIT');
     $permissions['activities']['remove'] = $this->securityContext->isGranted('ROLE_ACTIVITY_REMOVE');
     /** Phone permissions */
     if ($this->securityContext->isGranted('ROLE_PHONE_VIEW_ALL')) {
         $permissions['phones']['view'] = true;
     }
     if ($this->securityContext->isGranted('ROLE_PHONE_VIEW_OWN') && $object->getUser() == $this->user) {
         $permissions['phones']['view'] = true;
     }
     $permissions['phones']['add'] = $this->securityContext->isGranted('ROLE_PHONE_ADD');
     $permissions['phones']['edit'] = $this->securityContext->isGranted('ROLE_PHONE_EDIT');
     $permissions['phones']['remove'] = $this->securityContext->isGranted('ROLE_PHONE_REMOVE');
     return $permissions;
 }
开发者ID:Exanrus,项目名称:crm-bundle,代码行数:53,代码来源:ClientHandler.php


示例15: endElement

 public function endElement($parser, $name)
 {
     parent::endElement($parser, $name);
     if ($name == 'CONFIGURE') {
         $start_time = gmdate(FMT_DATETIME, $this->StartTimeStamp);
         $end_time = gmdate(FMT_DATETIME, $this->EndTimeStamp);
         $this->Build->ProjectId = $this->projectid;
         $this->Build->ProjectId = $this->projectid;
         $this->Build->StartTime = $start_time;
         $this->Build->EndTime = $end_time;
         $this->Build->SubmitTime = gmdate(FMT_DATETIME);
         $this->Build->SetSubProject($this->SubProjectName);
         $this->Build->InsertErrors = false;
         $this->Build->GetIdFromName($this->SubProjectName);
         $this->Build->RemoveIfDone();
         if ($this->Build->Id == 0) {
             // If the build doesn't exist we add it
             add_build($this->Build, $this->scheduleid);
         } else {
             // Otherwise we make sure that it's up-to-date.
             $this->Build->UpdateBuild($this->Build->Id, -1, -1);
         }
         $GLOBALS['PHP_ERROR_BUILD_ID'] = $this->Build->Id;
         $this->Configure->BuildId = $this->Build->Id;
         $this->Configure->StartTime = $start_time;
         $this->Configure->EndTime = $end_time;
         // Insert the configure
         if ($this->Configure->Exists()) {
             $this->Configure->Delete();
         }
         $this->Configure->Insert();
         // Insert errors from the log file
         $this->Configure->ComputeWarnings();
         $this->Configure->ComputeErrors();
         $this->Build->ComputeConfigureDifferences();
         // Record the number of warnings & errors with the build.
         $this->Build->SetNumberOfConfigureWarnings($this->Configure->NumberOfWarnings);
         $this->Build->SetNumberOfConfigureErrors($this->Configure->NumberOfErrors);
         // Record configure duration with the build.
         $this->Build->SetConfigureDuration($this->EndTimeStamp - $this->StartTimeStamp);
         // Update the tally of warnings & errors in the parent build,
         // if applicable.
         $this->Build->UpdateParentConfigureNumbers($this->Configure->NumberOfWarnings, $this->Configure->NumberOfErrors);
     } elseif ($name == 'LABEL') {
         if (isset($this->Configure)) {
             $this->Configure->AddLabel($this->Label);
         }
     }
 }
开发者ID:kitware,项目名称:cdash,代码行数:49,代码来源:configure_handler.php


示例16: endElement

 /** End Element */
 public function endElement($parser, $name)
 {
     parent::endElement($parser, $name);
     if ($name === 'SITE') {
         $start_time = gmdate(FMT_DATETIME, $this->StartTimeStamp);
         $end_time = gmdate(FMT_DATETIME, $this->EndTimeStamp);
         $this->Build->ProjectId = $this->projectid;
         $this->Build->StartTime = $start_time;
         $this->Build->EndTime = $end_time;
         $this->Build->SubmitTime = gmdate(FMT_DATETIME);
         $this->Build->SetSubProject($this->SubProjectName);
         $this->Build->GetIdFromName($this->SubProjectName);
         $this->Build->RemoveIfDone();
         if ($this->Build->Id == 0) {
             // If the build doesn't exist we add it.
             $this->Build->InsertErrors = false;
             add_build($this->Build, $this->scheduleid);
         } else {
             // Otherwise make sure that it's up-to-date.
             $this->Build->UpdateBuild($this->Build->Id, -1, -1);
         }
         // Record the coverage data that we parsed from this file.
         foreach ($this->CoverageFiles as $coverageInfo) {
             $coverageFile = $coverageInfo[0];
             $coverageFileLog = $coverageInfo[1];
             $coverageFile->TrimLastNewline();
             $coverageFile->Update($this->Build->Id);
             $coverageFileLog->BuildId = $this->Build->Id;
             $coverageFileLog->FileId = $coverageFile->Id;
             $coverageFileLog->Insert(true);
         }
     } elseif ($name == 'LINE') {
         $this->CurrentCoverageFile->File .= rtrim($this->CurrentLine);
         // Cannot be <br/> for backward compatibility.
         $this->CurrentCoverageFile->File .= '<br>';
     } elseif ($name == 'FILE') {
         // Store these objects to be inserted after we're guaranteed
         // to have a valid buildid.
         $this->CoverageFiles[] = array($this->CurrentCoverageFile, $this->CurrentCoverageFileLog);
     } elseif ($name == 'COVERAGELOG') {
         if (empty($this->CoverageFiles)) {
             // Store these objects to be inserted after we're guaranteed
             // to have a valid buildid.
             $this->CoverageFiles[] = array(new CoverageFile(), new CoverageFileLog());
         }
     }
 }
开发者ID:kitware,项目名称:cdash,代码行数:48,代码来源:coverage_log_handler.php


示例17: Exception

 /**
  * Constructs a new TaskHandler and sets up everything.
  *
  * @param AbstractSAXParser The ExpatParser object
  * @param object $parentHandler The parent handler that invoked this handler
  * @param ProjectConfigurator $configurator
  * @param TaskContainer $container The container object this task is contained in (null for top-level tasks).
  * @param RuntimeConfigurable $parentWrapper  Wrapper for the parent element, if any.
  * @param Target $target The target object this task is contained in (null for top-level tasks).
  */
 function __construct(AbstractSAXParser $parser, $parentHandler, ProjectConfigurator $configurator, $container = null, $parentWrapper = null, $target = null)
 {
     parent::__construct($parser, $parentHandler);
     if ($container !== null && !$container instanceof TaskContainer) {
         throw new Exception("Argument expected to be a TaskContainer, got something else");
     }
     if ($parentWrapper !== null && !$parentWrapper instanceof RuntimeConfigurable) {
         throw new Exception("Argument expected to be a RuntimeConfigurable, got something else.");
     }
     if ($target !== null && !$target instanceof Target) {
         throw new Exception("Argument expected to be a Target, got something else");
     }
     $this->configurator = $configurator;
     $this->container = $container;
     $this->parentWrapper = $parentWrapper;
     $this->target = $target;
 }
开发者ID:sensorsix,项目名称:app,代码行数:27,代码来源:TaskHandler.php


示例18: endElement

 /** End element */
 public function endElement($parser, $name)
 {
     parent::endElement($parser, $name);
     if ($name == 'SITE') {
         $start_time = gmdate(FMT_DATETIME, $this->StartTimeStamp);
         $end_time = gmdate(FMT_DATETIME, $this->EndTimeStamp);
         $this->Build->ProjectId = $this->projectid;
         $buildid = $this->Build->GetIdFromName($this->SubProjectName);
         // If the build doesn't exist we add it
         if ($buildid == 0) {
             $this->Build->ProjectId = $this->projectid;
             $this->Build->StartTime = $start_time;
             $this->Build->EndTime = $end_time;
             $this->Build->SubmitTime = gmdate(FMT_DATETIME);
             $this->Build->InsertErrors = false;
             add_build($this->Build, $this->scheduleid);
             $buildid = $this->Build->Id;
         }
         // Remove any previous coverage information
         $GLOBALS['PHP_ERROR_BUILD_ID'] = $buildid;
         $this->CoverageSummary->BuildId = $buildid;
         $this->CoverageSummary->RemoveAll();
         // Insert coverage summary
         $this->CoverageSummary->Insert();
         $this->CoverageSummary->ComputeDifference();
     } else {
         if ($name == 'FILE') {
             $this->CoverageSummary->AddCoverage($this->Coverage);
         } else {
             if ($name == 'LABEL') {
                 if (isset($this->Coverage)) {
                     $this->Coverage->AddLabel($this->Label);
                 }
             }
         }
     }
 }
开发者ID:rpshaw,项目名称:CDash,代码行数:38,代码来源:coverage_handler.php


示例19:

 /**
  * Constructs a new ProjectHandler
  *
  * @param  object  the ExpatParser object
  * @param  object  the parent handler that invoked this handler
  * @param  object  the ProjectConfigurator object
  * @access public
  */
 function __construct($parser, $parentHandler, $configurator)
 {
     $this->configurator = $configurator;
     parent::__construct($parser, $parentHandler);
 }
开发者ID:pmoutet,项目名称:navinum,代码行数:13,代码来源:ProjectHandler.php


示例20:

 /**
  * Constructs a new RootHandler
  *
  * The root filter is required so the parser knows what to do. It's
  * called by the ExpatParser that is instatiated in ProjectConfigurator.
  *
  * It recieves the expat parse object ref and a reference to the
  * configurator
  *
  * @param AbstractSAXParser $parser The ExpatParser object.
  * @param ProjectConfigurator $configurator The ProjectConfigurator object.
  */
 function __construct(AbstractSAXParser $parser, ProjectConfigurator $configurator)
 {
     $this->configurator = $configurator;
     parent::__construct($parser, $this);
 }
开发者ID:RadioCampusFrance,项目名称:airtime,代码行数:17,代码来源:RootHandler.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP AbstractModel类代码示例发布时间:2022-05-23
下一篇:
PHP AbstractForm类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap