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

PHP isnull函数代码示例

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

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



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


示例16: save

 public function save(Default_Model_VOContact $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getVoID())) {
         $data['void'] = $value->getVoID();
     }
     if (!isnull($value->getResearcherID())) {
         $data['researcherid'] = $value->getResearcherID();
     }
     if (!isnull($value->getRole())) {
         $data['role'] = $value->getRole();
     }
     if (!isnull($value->getEmail())) {
         $data['email'] = $value->getEmail();
     }
     if (!isnull($value->getName())) {
         $data['name'] = $value->getName();
     }
     $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,代码行数:29,代码来源:VOContactsMapperBase.php


示例17: save

 public function save(Default_Model_DisseminationEntry $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getComposerID())) {
         $data['composerid'] = $value->getComposerID();
     }
     if (!isnull($value->getRecipients())) {
         $data['recipients'] = $value->getRecipients();
     }
     if (!isnull($value->getFilter())) {
         $data['filter'] = $value->getFilter();
     }
     if (!isnull($value->getSubject())) {
         $data['subject'] = $value->getSubject();
     }
     if (!isnull($value->getMessage())) {
         $data['message'] = $value->getMessage();
     }
     if (!isnull($value->getSentOn())) {
         $data['senton'] = $value->getSentOn();
     }
     $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,代码来源:DisseminationMapperBase.php


示例18: save

 public function save(Repository_Model_CommRepoAllowedPlatformCombination $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getOsId())) {
         $data['osId'] = $value->getOsId();
     }
     if (!isnull($value->getArchId())) {
         $data['archId'] = $value->getArchId();
     }
     if (!isnull($value->getCanSupport())) {
         $data['canSupport'] = $value->getCanSupport();
     }
     if (!isnull($value->getFsPattern())) {
         $data['fsPattern'] = $value->getFsPattern();
     }
     if (!isnull($value->getIncRelSupport())) {
         $data['incRelSupport'] = $value->getIncRelSupport();
     }
     $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,代码来源:CommRepoAllowedPlatformCombinationsMapperBase.php


示例19: save

 public function save(Default_Model_New $value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getTimestamp())) {
         $data['timestamp'] = $value->getTimestamp();
     }
     if (!isnull($value->getAction())) {
         $data['action'] = $value->getAction();
     }
     if (!isnull($value->getSubjectguid())) {
         $data['subjectguid'] = $value->getSubjectguid();
     }
     if (!isnull($value->getFields())) {
         $data['fields'] = $value->getFields();
     }
     $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,代码来源:NewsMapperBase.php


示例20: save

 public function save($value)
 {
     global $application;
     $data = array();
     if (!isnull($value->getId())) {
         $data['id'] = $value->getId();
     }
     if (!isnull($value->getVmiID())) {
         $data['vmiid'] = $value->getVmiID();
     }
     if (!isnull($value->getHypervisors())) {
         $data['hypervisors'] = $value->getHypervisors();
     }
     if (!isnull($value->getArchID())) {
         $data['archid'] = $value->getArchID();
     }
     if (!isnull($value->getOsID())) {
         $data['osid'] = $value->getOsID();
     }
     if (!isnull($value->getOsVersion())) {
         $data['osversion'] = $value->getOsVersion();
     }
     if (!isnull($value->getFormat())) {
         $data['format'] = $value->getFormat();
     }
     $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,代码来源:VMIflavoursMapperBase.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP isnum函数代码示例发布时间:2022-05-15
下一篇:
PHP ismoving函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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