ここの情報は古いです。ご理解頂いた上でお取り扱いください。

source: OpenPNE3/trunk/lib/model/doctrine/MemberImage.class.php @ 12228

Last change on this file since 12228 was 12228, checked in by ebihara, 11 years ago

#3970:メンバーのメール投稿アドレスにハッシュを含められるようにした

File size: 571 bytes
Line 
1<?php
2
3/**
4 * This file is part of the OpenPNE package.
5 * (c) OpenPNE Project (http://www.openpne.jp/)
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file and the NOTICE file that were distributed with this source code.
9 */
10
11class MemberImage extends BaseMemberImage
12{
13  public function getIsPrimary()
14  {
15    if ($this->rawGet('is_primary'))
16    {
17      return true;
18    }
19
20    $primaryImage = $this->Member->MemberImage;
21    if ($primaryImage)
22    {
23      return (bool)($primaryImage->id == $this->id);
24    }
25
26    return false;
27  }
28}
Note: See TracBrowser for help on using the repository browser.