-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1028 from ngodfraind/master
user profile editable
- Loading branch information
Showing
30 changed files
with
1,279 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Claroline Connect package. | ||
* | ||
* (c) Claroline Consortium <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Claroline\CoreBundle\DataFixtures\Required\Data; | ||
|
||
use Claroline\CoreBundle\Persistence\ObjectManager; | ||
use Claroline\CoreBundle\DataFixtures\Required\RequiredFixture; | ||
|
||
class LoadProfilePropertiesData implements RequiredFixture | ||
{ | ||
public function load(ObjectManager $manager) | ||
{ | ||
$this->container->get('claroline.manager.profile_property_manager') | ||
->addDefaultProperties(); | ||
} | ||
|
||
public function setContainer($container) | ||
{ | ||
$this->container = $container; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Claroline Connect package. | ||
* | ||
* (c) Claroline Consortium <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Claroline\CoreBundle\Entity; | ||
|
||
use Doctrine\ORM\Mapping as ORM; | ||
|
||
/** | ||
* @ORM\Entity(repositoryClass="Claroline\CoreBundle\Repository\ProfilePropertyRepository") | ||
* @ORM\Table(name="claro_profile_property") | ||
*/ | ||
class ProfileProperty | ||
{ | ||
/** | ||
* @ORM\Id | ||
* @ORM\Column(type="integer") | ||
* @ORM\GeneratedValue(strategy="AUTO") | ||
*/ | ||
protected $id; | ||
|
||
/** | ||
* @ORM\Column(name="is_editable", type="boolean") | ||
*/ | ||
protected $isEditable; | ||
|
||
/** | ||
* @ORM\ManyToOne( | ||
* targetEntity="Claroline\CoreBundle\Entity\Role", | ||
* inversedBy="profileProperties", | ||
* cascade={"persist"} | ||
* ) | ||
* @ORM\JoinColumn(onDelete="CASCADE") | ||
*/ | ||
protected $role; | ||
|
||
/** | ||
* @ORM\Column(name="property", length=256) | ||
*/ | ||
protected $property; | ||
|
||
public function getId() | ||
{ | ||
return $this->id; | ||
} | ||
|
||
public function setIsEditable($bool) | ||
{ | ||
$this->isEditable = $bool; | ||
} | ||
|
||
public function isEditable() | ||
{ | ||
return $this->isEditable; | ||
} | ||
|
||
public function getIsEditable() | ||
{ | ||
return $this->isEditable; | ||
} | ||
|
||
public function setRole(Role $role) | ||
{ | ||
$this->role = $role; | ||
} | ||
|
||
public function getRole() | ||
{ | ||
return $this->role; | ||
} | ||
|
||
public function setProperty($property) | ||
{ | ||
$this->property = $property; | ||
} | ||
|
||
public function getProperty() | ||
{ | ||
return $this->property; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.