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


PHP Model_User::getUserId方法代码示例

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


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

示例1: set

 public function set($typ, $akce, $title, $link, $id = null)
 {
     $user = new Model_User();
     $project = new Model_Project();
     $idproject = is_null($project->getId()) ? $link : $project->getId();
     $data = array('idaccount' => $this->_dbTable->getAccountId(), 'idproject' => $idproject, 'iduser' => $user->getUserId(), 'typ' => $typ, 'akce' => $akce, 'title' => $title, 'link' => (int) $link, 'datetime' => new Zend_Db_Expr('NOW()'));
     $lastInsertId = $this->_dbTable->save($data, $id);
 }
开发者ID:besters,项目名称:My-Base,代码行数:8,代码来源:Stream.php

示例2: save

 /**
  * Uklada novy/editovany ticket do DB
  *
  * @param array $formData Data z formulare
  * @param int $id ID editovaneho zaznamu
  * @return int ID ukladaneho zaznamu
  */
 public function save($formData, $id = null)
 {
     $user = new Model_User();
     $project = new Model_Project();
     $data = array('idproject' => $project->getId(), 'iduser' => $user->getUserId(), 'idpriority' => empty($formData['idpriority']) ? null : $formData['idpriority'], 'idmilestone' => empty($formData['idmilestone']) ? null : $formData['idmilestone'], 'idtyp' => empty($formData['idtyp']) ? null : $formData['idtyp'], 'name' => $formData['name'], 'datetime' => new Zend_Db_Expr('NOW()'), 'description' => empty($formData['description']) ? null : $formData['description'], 'status' => $formData['status']);
     $lastInsertId = $this->_dbTable->save($data, $id);
     $this->_dbTable->stream(Model_Stream::TYP_TICKET, Model_Stream::AKCE_REPORTED, $formData['name'], $lastInsertId);
     return $lastInsertId;
 }
开发者ID:besters,项目名称:My-Base,代码行数:16,代码来源:Ticket.php

示例3: save

 /**
  * Uklada novy/editovany milnik do DB
  *
  * @param array $formData Data z formulare
  * @param int $id ID editovaneho zaznamu
  * @return int ID ukladaneho zaznamu
  */
 public function save($formData, $id = null)
 {
     $user = new Model_User();
     $project = new Model_Project();
     $data = array('idproject' => $project->getId(), 'iduser' => $user->getUserId(), 'idpriority' => empty($formData['idpriority']) ? null : $formData['idpriority'], 'name' => $formData['name'], 'datetime' => $formData['datetime'], 'description' => empty($formData['description']) ? null : $formData['description'], 'status' => $formData['status'], 'parent' => empty($formData['parent']) ? null : $formData['parent']);
     $lastInsertId = $this->_dbTable->save($data, $id);
     $this->_dbTable->stream(Model_Stream::TYP_MILESTONE, Model_Stream::AKCE_CREATED, $formData['name'], $lastInsertId);
     return $lastInsertId;
 }
开发者ID:besters,项目名称:My-Base,代码行数:16,代码来源:Milestone.php


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