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


PHP isnull函数代码示例

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


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

示例1: save

 public function save(Default_Model_VOWideImageListImage $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getVowideImageListID())) {
         $data['vowide_image_list_id'] = $value->getVowideImageListID();
     }
     if (!isnull($value->getVappListID())) {
         $data['vapplistid'] = $value->getVappListID();
     }
     if (!isnull($value->getGuid())) {
         $data['guid'] = $value->getGuid();
     }
     if (!isnull($value->getState())) {
         $data['state'] = $value->getState();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:29,代码来源:VOWideImageListImagesMapperBase.php

示例2: save

 public function save(Default_Model_AppDelInfo $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getAppID())) {
         $data['appid'] = $value->getAppID();
     }
     if (!isnull($value->getDeletedBy())) {
         $data['deletedby'] = $value->getDeletedBy();
     }
     if (!isnull($value->getDeletedOn())) {
         $data['deletedon'] = $value->getDeletedOn();
     }
     if (!isnull($value->getRoleID())) {
         $data['roleid'] = $value->getRoleID();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:29,代码来源:AppDelInfosMapperBase.php

示例3: save

 public function save(Repository_Model_CommRepoOs $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getName())) {
         $data['name'] = $value->getName();
     }
     if (!isnull($value->getDisplayName())) {
         $data['displayName'] = $value->getDisplayName();
     }
     if (!isnull($value->getFlavor())) {
         $data['flavor'] = $value->getFlavor();
     }
     if (!isnull($value->getDisplayFlavor())) {
         $data['displayFlavor'] = $value->getDisplayFlavor();
     }
     if (!isnull($value->getArtifactType())) {
         $data['artifactType'] = $value->getArtifactType();
     }
     if (!isnull($value->getAcronym())) {
         $data['acronym'] = $value->getAcronym();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:35,代码来源:CommRepoOssMapperBase.php

示例4: save

 public function save(Default_Model_Message $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getReceiverID())) {
         $data['receiverid'] = $value->getReceiverID();
     }
     if (!isnull($value->getSenderID())) {
         $data['senderid'] = $value->getSenderID();
     }
     if (!isnull($value->getMsg())) {
         $data['msg'] = $value->getMsg();
     }
     if (!isnull($value->getSentOn())) {
         $data['senton'] = $value->getSentOn();
     }
     if (!isnull($value->getIsRead())) {
         $data['isread'] = $this->pgBool($value->getIsRead());
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:32,代码来源:MessagesMapperBase.php

示例5: save

 public function save(Default_Model_AppTag $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getAppID())) {
         $data['appid'] = $value->getAppID();
     }
     if (!isnull($value->getResearcherID())) {
         $data['researcherid'] = $value->getResearcherID();
     }
     if (!isnull($value->getTag())) {
         $data['tag'] = $value->getTag();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:26,代码来源:AppTagsMapperBase.php

示例6: save

 public function save(Default_Model_Actor $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getID())) {
         $data['id'] = $value->getID();
     }
     if (!isnull($value->getGUID())) {
         $data['guid'] = $value->getGUID();
     }
     if (!isnull($value->getType())) {
         $data['type'] = $value->getType();
     }
     if (!isnull($value->getName())) {
         $data['name'] = $value->getName();
     }
     if (!isnull($value->getCName())) {
         $data['cname'] = $value->getCName();
     }
     if (!isnull($value->getHidden())) {
         $data['hidden'] = $this->pgBool($value->getHidden());
     }
     $q1 = '';
     $q2 = '';
     if (null === ($id = '')) {
         unset($data['']);
         $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:32,代码来源:ActorsMapperBase.php

示例7: save

 public function save(Default_Model_AccessTokenNetfilter $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getNetfilter())) {
         $data['netfilter'] = $value->getNetfilter();
     }
     if (!isnull($value->getTokenID())) {
         $data['tokenid'] = $value->getTokenID();
     }
     $q1 = array('tokenid = ?', 'netfilter = ?');
     $q2 = array($value->tokenid, $value->netfilter);
     $select = $this->getDbTable()->select();
     for ($i = 0; $i < count($q1); $i++) {
         $select->where($q1[$i], $q2[$i]);
     }
     $new_entry = count($this->getDbTable()->fetchAll($select)) == 0;
     if ($new_entry) {
         $this->getDbTable()->insert($data);
     } else {
         $s = array();
         for ($i = 0; $i < count($q1); $i++) {
             $s[] = $this->getDbTable()->getAdapter()->quoteInto($q1[$i], $q2[$i]);
         }
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:27,代码来源:AccessTokenNetfiltersMapperBase.php

示例8: save

 public function save(Default_Model_Permission $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getActorGUID())) {
         $data['actor'] = $value->getActorGUID();
     }
     if (!isnull($value->getActionID())) {
         $data['actionid'] = $value->getActionID();
     }
     if (!isnull($value->getTargetGUID())) {
         $data['object'] = $value->getTargetGUID();
     }
     $q1 = '';
     $q2 = '';
     if (null === ($id = '')) {
         unset($data['']);
         $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:26,代码来源:PermissionsMapperBase.php

示例9: save

 public function save(Default_Model_ResearcherCname $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getCreated())) {
         $data['created'] = $value->getCreated();
     }
     if (!isnull($value->getEnabled())) {
         $data['enabled'] = $this->pgBool($value->getEnabled());
     }
     if (!isnull($value->getIsprimary())) {
         $data['isprimary'] = $this->pgBool($value->getIsprimary());
     }
     if (!isnull($value->getValue())) {
         $data['value'] = $value->getValue();
     }
     if (!isnull($value->getResearcherID())) {
         $data['researcherid'] = $value->getResearcherID();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:32,代码来源:ResearcherCnamesMapperBase.php

示例10: save

 public function save(Default_Model_ContractType $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getName())) {
         $data['name'] = $value->getName();
     }
     if (!isnull($value->getTitle())) {
         $data['title'] = $value->getTitle();
     }
     if (!isnull($value->getGroupName())) {
         $data['groupname'] = $value->getGroupName();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:26,代码来源:ContractTypesMapperBase.php

示例11: save

 public function save(Default_Model_AccessToken $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getToken())) {
         $data['token'] = $value->getToken();
     }
     if (!isnull($value->getActorid())) {
         $data['actor'] = $value->getActorid();
     }
     if (!isnull($value->getCreatedOn())) {
         $data['createdon'] = $value->getCreatedOn();
     }
     if (!isnull($value->getType())) {
         $data['type'] = $value->getType();
     }
     if (!isnull($value->getAddedByID())) {
         $data['addedby'] = $value->getAddedByID();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:32,代码来源:AccessTokensMapperBase.php

示例12: save

 public function save(Default_Model_VA $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getName())) {
         $data['name'] = $value->getName();
     }
     if (!isnull($value->getAppID())) {
         $data['appid'] = $value->getAppID();
     }
     if (!isnull($value->getImgLstPrivate())) {
         $data['imglst_private'] = $this->pgBool($value->getImgLstPrivate());
     }
     if (!isnull($value->getGuID())) {
         $data['guid'] = $value->getGuID();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:29,代码来源:VAsMapperBase.php

示例13: save

 public function save(Default_Model_NGI $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getName())) {
         $data['name'] = $value->getName();
     }
     if (!isnull($value->getDescription())) {
         $data['description'] = $value->getDescription();
     }
     if (!isnull($value->getCountryID())) {
         $data['countryid'] = $value->getCountryID();
     }
     if (!isnull($value->getUrl())) {
         $data['url'] = $value->getUrl();
     }
     if (!isnull($value->getEuropean())) {
         $data['european'] = $this->pgBool($value->getEuropean());
     }
     if (!isnull($value->getLogo())) {
         $data['logo'] = $value->getLogo();
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:35,代码来源:NGIsMapperBase.php

示例14: save

 public function save(Default_Model_ActorGroupMember $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getGroupID())) {
         $data['groupid'] = $value->getGroupID();
     }
     if (!isnull($value->getActorGUID())) {
         $data['actorid'] = $value->getActorGUID();
     }
     if (!isnull($value->getPayload())) {
         $data['payload'] = $value->getPayload();
     }
     $q1 = '';
     $q2 = '';
     if (null === ($id = $value->id)) {
         unset($data['']);
         $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:26,代码来源:ActorGroupMembersMapperBase.php

示例15: save

 public function save(Default_Model_Privilege $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getActionID())) {
         $data['actionid'] = $value->getActionID();
     }
     if (!isnull($value->getObject())) {
         $data['object'] = $value->getObject();
     }
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getActor())) {
         $data['actor'] = $value->getActor();
     }
     if (!isnull($value->getRevoked())) {
         $data['revoked'] = $this->pgBool($value->getRevoked());
     }
     $q1 = 'id = ?';
     $q2 = $value->id;
     if (null === ($id = $value->id)) {
         unset($data['id']);
         $value->id = $this->getDbTable()->insert($data);
     } else {
         $s = $this->getDbTable()->getAdapter()->quoteInto($q1, $q2);
         $this->getDbTable()->update($data, $s);
     }
 }
开发者ID:IASA-GR,项目名称:appdb-core,代码行数:29,代码来源:PrivilegesMapperBase.php


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